package org.acme.cdc.listener;

import org.acme.cdc.annotation.CDCListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@CDCListener(tableName = "sys_server_message")
public class SysTestDbMessageListener implements CDCMessageListener {

    Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    public void onMessage(Object binlogObj) {
        logger.warn("SysTestDbMessageListener 收到: " + binlogObj + " 变化的消息 ...");
    }
}
